﻿@model asMeishi.web.Models.comment
@using asMeishi.web.Models
@using asMeishi.web.Classes
@{
    comment ct=Model;

    string[] values = { "暂不评分", "1", "2", "3", "4", "5" };
    
    }
<div>
                    <fieldset class="commentFormPanle">
                    <legend>添加评论</legend>
                    <!--评价提交面板--->
                        <input type="hidden" name="commentId" value="@ct.Id" />
                        <span class="avatar"><img src="@(baseConfig.siteThemePath)images/userNullPic.png" /></span>
                        <span class="author">@userC.loginUser.email<input type="hidden" name="userName" value="@userC.loginUser.name" /><input type="hidden" name="userId" value="@userC.loginUser.Id" /></span>

                        
                        <div class="frame_grade">
                            <span class="quality">味道：
                            @Html.DropDownListFor(d => d.quality, new SelectList(values, ct.quality))
                            </span>
                            <span class="service ">服务:
                            @Html.DropDownListFor(d => d.service, new SelectList(values, ct.service))
                            </span>
                            <span class="priceQuality ">环境:
                                @Html.DropDownListFor(d => d.priceQuality, new SelectList(values, ct.priceQuality))
                            </span>
                            <div >花费：<input type="text" class="cost" name="cost" style=" width:50px;" value="@ct.cost" /><span style=" color:Gray">元/每人</span></div>
                            <div>
                            <span style=" vertical-align:top">内容：</span><textarea style=" border:1px solid" name="commentContent">@ct.content</textarea>
                            </div>
                        </div>
                        

                        <div class="clearFloat"></div>
                    </fieldset>
                </div>